package mypro1;

public class TestSwitch {
    public static void main(String[] args) {
        int c = 1 + (int) (Math.random() * 6);
        System.out.println(c);

        if (c == 6) {
            System.out.println("今天手气不错！");
        } else if (c == 5) {
            System.out.println("今天手气还行！");
        } else if (c == 4) {
            System.out.println("今天手气一般！");
        } else {
            System.out.println("今天手气不好！");
        }

        System.out.println("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
        switch (c) {
            case 6:
                System.out.println("今天手气不错！");
                break;
            case 5:
                System.out.println("今天手气还行！");
                break;
            case 4:
                System.out.println("今天手气一般！");
                break;
            default:
                System.out.println("今天手气不好！");
                break;
        }
        System.out.println("################################");
        char m1 = 'a';
        int ran = (int) (26 * Math.random());
        char m2 = (char) (m1 + ran);
        System.out.print(m2 + ",");
        switch (m2) {
            case 'a':
            case 'e':
            case 'i':
            case 'o':
            case 'u':
                System.out.println("元音");
                break;
            case 'w':
            case 'y':
                System.out.println("半元音");
                break;
            default:
                System.out.println("辅音");
                break;
        }
    }
}